﻿<UserControl x:Class="ABCat.UI.WPF.UI.StatusBarUc"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:models="clr-namespace:ABCat.UI.WPF.Models"
             MinHeight="30"
             mc:Ignorable="d" Background="{StaticResource WindowBackgroundColorBrush}"
             d:DataContext="{d:DesignInstance models:StatusBarStateViewModel}">
	<StackPanel Orientation="Horizontal">
		<Button MinWidth="24"
		        MinHeight="24"
		        MaxHeight="24"
														Margin="2"
		        HorizontalAlignment="Center"
		        BorderThickness="0"
										Background="{x:Null}"
		        Command="{Binding CancelAsyncOperationCommand}"
										Content="{StaticResource CancelAsyncOperationIcon}"
		        Visibility="{Binding CancelAsyncOperationCommandVisibibility}"/>
		<StackPanel Orientation="Horizontal">
			<TextBlock MinWidth="100"
			           MaxWidth="350"
														Margin="4"
					    TextTrimming="CharacterEllipsis"
			           Text="{Binding ProgressBarTotalMessage}"
			           Visibility="{Binding ProgressBarTotalVisibility}" Foreground="#FF4F4F4F" VerticalAlignment="Center" />
			<ProgressBar Width="100"
														Margin="4"
			             Maximum="{Binding ProgressBarTotalMaximum}"
			             Minimum="{Binding ProgressBarTotalMinimum}"
			             Visibility="{Binding ProgressBarTotalVisibility}"
			             Value="{Binding ProgressBarTotalValue}" Foreground="White" />
		</StackPanel>
		<StackPanel Orientation="Horizontal">
			<TextBlock MinWidth="100"
			           MaxWidth="350"
														Margin="4"
			           Text="{Binding ProgressBarSmallMessage}"
					    TextTrimming="CharacterEllipsis"
			           Visibility="{Binding ProgressBarSmallVisibility}" Foreground="#FF4F4F4F" VerticalAlignment="Center" />
			<ProgressBar Width="100"
			             Maximum="{Binding ProgressBarSmallMaximum}"
			             Minimum="{Binding ProgressBarSmallMinimum}"
			             Visibility="{Binding ProgressBarSmallVisibility}"
														Margin="4"
			             Value="{Binding ProgressBarSmallValue}" Foreground="White" />
		</StackPanel>
	</StackPanel>
</UserControl>
